package com.scm.persist.mybatis;

import com.scm.persist.model.ScmOrderProduct;
import com.scm.persist.model.ScmOrderProductExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface ScmOrderProductMapper {
    int countByExample(ScmOrderProductExample example);

    int deleteByExample(ScmOrderProductExample example);

    int deleteByPrimaryKey(Long id);

    int insert(ScmOrderProduct record);

    int insertSelective(ScmOrderProduct record);

    List<ScmOrderProduct> selectByExampleWithRowbounds(ScmOrderProductExample example, RowBounds rowBounds);

    List<ScmOrderProduct> selectByExample(ScmOrderProductExample example);

    ScmOrderProduct selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") ScmOrderProduct record, @Param("example") ScmOrderProductExample example);

    int updateByExample(@Param("record") ScmOrderProduct record, @Param("example") ScmOrderProductExample example);

    int updateByPrimaryKeySelective(ScmOrderProduct record);

    int updateByPrimaryKey(ScmOrderProduct record);

    int updateByScmOrderId(@Param("updated")ScmOrderProduct updated,@Param("scmOrderId")Long scmOrderId);


}
